package com.boss.controller;

import com.boss.entity.Label;
import com.boss.service.LabelService;
import com.boss.util.ResultVOUtil;
import com.boss.vo.ResultVO;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/label")
public class LabelController {
    @Resource
    private LabelService labelService;

    @RequestMapping("/list")
    public ResultVO getAll(){
        return ResultVOUtil.success(labelService.list());
    }
}
